package com.buba.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.buba.pojo.LgMixType;
import com.buba.mapper.LgMixTypeMapper;
import com.buba.service.LgMixTypeService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author MrJia
 * @since 2020-10-27
 */
@Service
public class LgMixTypeServiceImpl extends ServiceImpl<LgMixTypeMapper, LgMixType> implements LgMixTypeService {

    @Autowired
    private LgMixTypeMapper lgMixTypeMapper;

    @Override
    public List<LgMixType> selectListByPid(String pid) {
        QueryWrapper<LgMixType> lgMixTypeQueryWrapper = new QueryWrapper<>();
        return lgMixTypeMapper.selectList(lgMixTypeQueryWrapper.lambda().eq(LgMixType::getPid, pid));
    }
}
